package com.noreply.springannotation.AutowiredAndResource;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * @author noreply
 * @description
 * @datetime 2021/8/22 21:40
 */
@Configuration
@Import(UserService.class)
public class UserConfig {
    @Bean
    public User user1() {
        return new User(1L, "user1");
    }

    @Bean
    public User user2() {
        return new User(2L, "user2");
    }

    @Bean
    public User user3() {
        return new User(3L, "user3");
    }

    @Bean
    public User user4() {
        return new User(34L, "user4");
    }

}
